package com.wisdytech.cloud.service;

import com.wisdytech.cloud.config.FeignConfiguration;
import com.wisdytech.linkmes.common.MultiResultResponse;
import com.wisdytech.linkmes.wms.api.basic.dto.MaterialCategoryQueryDto;
import com.wisdytech.linkmes.wms.api.basic.vo.MaterialCategoryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Wisdytech.cn
 * com.wisdytech.cloud.service.MesWmsService
 *
 * @author hailin.zhl
 * @date 2018/11/12
 */
@FeignClient(value = "MES-WMS", configuration = FeignConfiguration.class)
public interface MesWmsService {

    @RequestMapping(value = "/wms/basic/materialCategory/getMaterialCategory", method = RequestMethod.POST)
    MultiResultResponse<MaterialCategoryVo> getMaterialCategory(@RequestBody MaterialCategoryQueryDto materialCategoryQueryDto,
                                                                @RequestParam(value = "start") Integer start,
                                                                @RequestParam(value = "limit") Integer limit);

}
